<?php 
namespace Common\Model;
use Think\Model\RelationModel;
class YgclClassTypeRemarkModel extends RelationModel{
	protected $_link = array(
			'term'=>array(
					'mapping_type'=>self::BELONGS_TO,
					'class_name'  =>'YgclTerm',
					'foreign_key'=>'tid',
					//'mapping_order'=> 'id desc',
					//'as_fields'=>'title:class',
			),
			'classtype'=>array(
					'mapping_type'=>self::BELONGS_TO,
					'class_name'  =>'YgclClassType',
					'foreign_key'=>'ctid',
					//'as_fields'=>'title:class',
			),
	);
}
?>